#include "startgame.h"
#include "ui_startgame.h"
#include"QDebug"
#include<QString>
#include <QDialog>
StartGame::StartGame(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::StartGame)
{
    this->setWindowTitle("飞机大战");
           ui->setupUi(this);
}

StartGame::~StartGame()
{
    delete ui;

}
void StartGame::on_pushButtonStart_clicked()
{
    this->close();
    MainScene *m;
    m=new MainScene();
    m->show();
}
void StartGame::on_pushButtonExit_clicked()
{
    exit(0);
}



